<?php
require('common/common.php');

$result = array('success'=>true);

try {
    $db = db_connect();
    User::initialize($db);
    $user = User::authenticate();
    
    $q = new MysqlQuery($db,'select * from account_type',true);
    $result['payload'] = $q->get_array('account_type_id');

/*
    $Input = new Input();
    switch($Input->get('command')) {
        case '':
            break;
        default:
            throw new Exception('Invalid Input');
            break;
    }
*/
} 
catch (Exception $e) {
    $result['success'] = false;
    $result['message'] = $e->getMessage();
}

die(json_encode($result));

?>
